﻿using System;

namespace Array
{
    class Program
    {
        static void Main(string[] args)
        {
            //--------------------------基本数组------------------------------
            //var array = new Array(5);
            //array.AddLast(100);
            //array.AddLast(200);
            //array.AddLast(300);
            //array.AddLast(200);
            //array.Add(index: 1, e: 3000);
            //array.Remove(1);


            //--------------------------泛型数组------------------------------
            TArray<Student> student = new TArray<Student>(5);
            for (int i = 0; i < 100; i++)
            {
                student.AddLast(new Student { Name = "陈" + i, Sorce = "0" + i });
            }


            Console.WriteLine(student.ToString());

            Console.ReadLine();
        }
    }
}
